package com.xiaobai.dao;

import com.xiaobai.pojo.Achievement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AchievementDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Achievement record);

    int insertSelective(Achievement record);

    Achievement selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Achievement record);

    int updateByPrimaryKey(Achievement record);

    int updateOrInsertAchievement(@Param("student_id") String student_id,@Param("term") String term,@Param("upContent") String upContent);

    int updateOrInsertAchievementBatch(@Param("list")List<com.xiaobai.mybatis_plus.entity.Achievement> list);

    List<Achievement> selectAchievementByDB(@Param("student_id")String student_id);

    int piLiangeInsertAchievement(List<Achievement> list);
}